package com.lijin.study.java.acct;

public class Test1 {

	private Test2 t2 = null;

	public void setT2(Test2 t2) {
		this.t2 = t2;
	}
	
	public void printInfo() {
		t2.printInfo();
	}
	
	public static void main(String[] args) {
		Test1 t1 = new Test1();
		Test2 t2 = new Test2();
		t1.setT2(t2);
		t2.setT1(t1);
		
		t1.printInfo();
	}
}
